<?php
namespace Home\Controller;
class IndexController extends HomeController {

   //左侧树型导航
    public function getTree() {
        $this->ajaxReturn(D('Nav')->getTree());
    }

    //根据ID 修改当前登录密码 [返回影响的行数]
    public function editPassword() {
        if(IS_AJAX) {
            $User = D('User');
            echo $User->editPassword(I('post.id'),I('post.password'),I('post.notpassword'));
        } else {
            $this->error('非法操作');
        }
    }


}